package javaLab.customClassLoader;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class App 
{
    public static void main( String[] args ) throws IOException
    {
    	for(;;){
    		try{
    			ClassLoader classLoader = new CustomClassLoader();
    	    	Object testModule = Class.forName("javaLab.customClassLoader.TestModule", true, classLoader).newInstance();
                System.out.println(testModule);
        	} catch(ClassNotFoundException ex){
        		System.out.println(ex);
        	} catch(Exception ex){
        		System.out.println(ex);
        	}
        	new BufferedReader(new InputStreamReader(System.in)).readLine();
    	}
    }
}
